package com.baizhi.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.Date;

@TableName("t_news")
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
public class News {
    @TableId(type = IdType.AUTO)
    private int id;
    private String title;
    private String content;
    private String author;
    @TableField("createdate")
    private Date createDate;//create_date
}
